<?php
if (session_status() != PHP_SESSION_ACTIVE) {
    session_start();
}
include("./API/BookClass.php");
include("./API/APIObject.php");
include("./API/Code/Filter.php");
 $api = new APIObject();

// Get Room Availability
    $roomGroup1 = unserialize($_SESSION["roomGroup"]);
    $roomGroup2 = new RoomGroup();
    $roomGroup2->Room = $roomGroup1->Room;


    $roomAvail = $api->GetRoomAvailability
            (
            $_POST["hotelId"], $_SESSION["checkIn"], $_SESSION["checkOut"], NULL, $_POST["supplierType"], $_POST["roomRateKey"], $_POST["roomRateCode"], $_POST["roomTypeCode"], TRUE, TRUE, "HOTEL_DETAILS,ROOM_TYPES,ROOM_AMENITIES,PROPERTY_AMENITIES,HOTEL_IMAGES", $roomGroup2
    );
    //$roomAvail->

?>
